const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  name: state => state.user.userInfo.username, // 用户名
  userId: state => state.user.userInfo.userId, // 用户id
  companyId: state => state.user.userInfo.companyId, // 公司id
  routes: state => state.permission.routes, // 路由
  userInfo: state => state.user.userInfo // 个人信息
}
export default getters
